#coding:utf-8
import paramiko
myssh = paramiko.SSHClient()
myssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())  # 跳过了远程连接中选择‘是’的环节,
myssh.connect('10.159.111.24', 22, 'zopeng', '2018KEnan')

while True:
	print '$',
	a = raw_input()
	stdin, stdout, stderr = myssh.exec_command(a)
	print stdout.read()
